package com.rfsp.common.pojo.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.rfsp.common.base.BaseDTO;

public class LoginDTO extends BaseDTO {
	
	@NotNull(message = "用户名不能为空")
    @Size(message = "长度 [1-20] ", min = 1, max = 20)
    private String userCode;
 
//    @Min(message = "id不得小于0", value = 0)
//    private Integer id;
     
	@NotNull(message = "密码不能为空")
    private String password;

	@NotNull(message = "密码不能为空")
    private String passwordMd5;

	@NotNull(message = "输入验证码")
    private String vcode;

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPasswordMd5() {
		return passwordMd5;
	}

	public void setPasswordMd5(String passwordMd5) {
		this.passwordMd5 = passwordMd5;
	}

	public String getVcode() {
		return vcode;
	}

	public void setVcode(String vcode) {
		this.vcode = vcode;
	}
 
    //在内部属性是自定义对象的时候添加 @Valid 注解 ，即可开启对In对象的校验。 
    //记得添加@NotNull注解，否则该对象可以为null，并且此时In对象的校验规则也不会抛出异常 。
//    @Valid
//    @NotNull(message = "In 对象不能为null ", groups = {DemoValidateGroup.ThirdGroup.class, DemoValidateGroup.SecondeGroup.class})
//    private DemoIn in;
	
	
    
}
